[gd_scene load_steps=10 format=3 uid="uid://cin8akpeesevc"]

[ext_resource type="Script" path="res://Scripts/body.gd" id="1_fi3mt"]
[ext_resource type="Script" path="res://Scripts/Turret.gd" id="2_3m5gd"]

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kqstj"]
albedo_color = Color(0.0464234, 0.213664, 0.0973319, 1)

[sub_resource type="BoxMesh" id="BoxMesh_grdrm"]
material = SubResource("StandardMaterial3D_kqstj")
size = Vector3(1, 0.5, 2)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_icvsp"]
albedo_color = Color(0.172549, 0.32549, 0.215686, 1)

[sub_resource type="BoxMesh" id="BoxMesh_widx0"]
material = SubResource("StandardMaterial3D_icvsp")
size = Vector3(0.5, 0.5, 0.7)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dx6go"]
albedo_color = Color(0.172549, 0.32549, 0.219608, 1)

[sub_resource type="CylinderMesh" id="CylinderMesh_1j455"]
material = SubResource("StandardMaterial3D_dx6go")
top_radius = 0.05
bottom_radius = 0.05
height = 1.5

[sub_resource type="BoxShape3D" id="BoxShape3D_8px3i"]
size = Vector3(1, 0.5, 2)

[node name="Tank" type="VehicleBody3D"]
script = ExtResource("1_fi3mt")

[node name="Body" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_grdrm")

[node name="Turret" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
mesh = SubResource("BoxMesh_widx0")
script = ExtResource("2_3m5gd")

[node name="Gun" type="MeshInstance3D" parent="Turret"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, -0.859888)
mesh = SubResource("CylinderMesh_1j455")

[node name="Camera3D" type="Camera3D" parent="Turret"]
transform = Transform3D(1, 0, 0, 0, 0.915002, 0.403449, 0, -0.403449, 0.915002, 0, 0.885524, 2.49082)
current = true

[node name="BodyCollider" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_8px3i")

[node name="FrontLeft" type="VehicleWheel3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.547618, 0, -0.629105)
use_as_traction = true

[node name="FrontRight" type="VehicleWheel3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0.533902, 0, -0.629105)
use_as_traction = true

[node name="RearLeft" type="VehicleWheel3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.547618, 0, 0.567396)
use_as_traction = true

[node name="RearRight" type="VehicleWheel3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0.533902, 0, 0.567396)
use_as_traction = true
